﻿using System;
using System.Collections.Generic;
using System.Web;
using System.IO;
using System.Text;

namespace AjaxUploadServer
{

	public interface IServerFile
	{
		bool IsValid { get; }

		string Id { get; }
		string Hash { get; set; }
		ClientFile ClientFileInfo { get; }

		string InfoName { get; }
		bool InfoExists { get; }
		bool SaveInfo(string json);
		bool SaveInfo();

		string TempName { get; }
		bool SaveTemp(Stream stream);
		bool SaveTemp(HttpRequestBase request);

		bool CheckHash(string hashType);
		bool Finalize();
	}
}